#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int arr[20] = { 0 };
	int i = 0;
	int find(int* a, int x, int n);
	
	printf("input:");
	do
	{
		scanf("%d", &arr[i]);
		i++;
	} while (getchar() != '\n' && i < 20);

	int n = sizeof(arr) / sizeof(arr[0]);
	int x = 0;
	printf("\none num:");
	scanf("%d", &x);
	int m = find(arr, x, n);
	printf("\n%d\n", m);

	return 0;
}
int find(int* a, int x, int n)
{
	int i = 0;
	for (i = 0; i < n; i++)
	{
		if (a[i] == x)
			return 1;
	}
	return 0;
}